package me.cjj.android.assignment.model;

public interface IQuestion {

    String getQuestionText();

    int getAnswerCount();

    String getAnswerText();

    boolean judge(float... answers);

    final static class Utils {

        public static String toQuestionText(int number, String x, boolean isFirst) {
            String symbol = !isFirst ? "+" : "";
            if (number < 0) {
                return number + "" + x;
            } else {
                if (number == 0) return "";
                else
                    return symbol + number + x;
            }
        }
    }

}
